
package me.zhengjie.modules.summary.service;

import me.zhengjie.modules.summary.domain.RecordYearSub;
import me.zhengjie.modules.summary.service.dto.RecordSubDto;
import me.zhengjie.modules.summary.service.dto.RecordYearSubDto;
import me.zhengjie.modules.summary.service.dto.RecordYearSubQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @website https://el-admin.vip
* @description 服务接口
* @author yyj
* @date 2022-12-26
**/
public interface RecordYearSubService {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(RecordYearSubQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<RecordSubDto>
    */
    List<RecordYearSubDto> queryAll(RecordYearSubQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param id ID
     * @return RecordSubDto
     */
    RecordYearSubDto findById(String id);

    /**
    * 创建
    * @param resources /
    * @return RecordSubDto
    */
    RecordYearSubDto create(RecordYearSub resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(RecordYearSub resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(String[] ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<RecordYearSubDto> all, HttpServletResponse response) throws IOException;
}